<?php

$redis = new Redis();

$redis->connect('127.0.0.1',6379);
$arr[0]=1;

$data=json_encode($arr);
$res = $redis->publish('car_package',$data);